<template>
    <div>
   <el-container>
    <el-header>
      <el-row>
    <el-col :span="12">
        <div class="grid-content bg-purple-dark" style="text-align: left; font-size: 30px">谷粒电商-运营商管理系统</div>
    </el-col>
    <el-col :span="12">
        <div class="grid-content bg-purple-dark" style="text-align: right; font-size: 20px">{{loginName}}</div>
    </el-col>
    </el-row>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <el-menu
      default-active="2"
      class="el-menu-vertical-demo"
      router
      >
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>商品管理</span>
        </template>
       <el-menu-item index="/categoryDTO">商品分类</el-menu-item>
       <el-menu-item index="/trademark">品牌</el-menu-item>
        <el-menu-item index="/categoryTrademark">分类品牌</el-menu-item>
         <el-menu-item index="/attr">属性</el-menu-item>
       <el-menu-item index="/spu">商品</el-menu-item>
       <el-menu-item index="/sku">SKU</el-menu-item>
      </el-submenu>
      <el-submenu index="3">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>C端用户登录页面</span>
        </template>
       <el-menu-item index="/searchSku">搜索商品</el-menu-item>
	    </el-submenu>
    </el-menu>

      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
   </el-container>
        </div>
</template>
<script>
export default {
    data(){
        return{

        }
    }
}
</script>



<style>
.el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 16px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>

